﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.Dto;
using Happy.Archetype;

namespace Happy.Security.Query.Users
{
    [ViewModel]
    public sealed class UserView :
        IId<Guid>,
        IOptimisticKey
    {
        public Guid Id { get; set; }

        public byte[] OptimisticKey { get; set; }

        public string UserName { get; set; }

        public string PlantextPassword { get; set; }

        public string PasswordQuestion { get; set; }

        public string PasswordAnswer { get; set; }

        public string Email { get; set; }

        public bool IsApproved { get; set; }

        public bool IsLockedOut { get; set; }

        public bool IsOnline { get; set; }

        public DateTime? LastActivityDate { get; set; }

        public DateTime? LastLockoutDate { get; set; }

        public DateTime? LastLoginDate { get; set; }

        public DateTime? LastPasswordChangedDate { get; set; }
    }
}
